//
// Created by china on 25-1-5.
//

#ifndef CHAT_USERMODEL_H
#define CHAT_USERMODEL_H

#include "DataBase.hpp"
#include "db.h"
#include "Pool.h"
#include <string>

class UserModel {
public:
    //插入一条信息
    bool insert(struct MySQLTable::User& user);
    //更具用户id查询数据库
    struct MySQLTable::User query(int id);
    //更新用户登录状态
    bool updateState(const struct MySQLTable::User& user);
    //重置用户状态信息
    bool resetUserState();
};


#endif //CHAT_USERMODEL_H
